package com.jia.train.seat.service;

import com.jia.train.global.page.PageResponse;
import com.jia.train.seat.entity.TrainCarriage;
import com.jia.train.seat.request.TrainCarriageQueryRequest;
import com.jia.train.seat.request.TrainCarriageSaveRequest;
import com.jia.train.seat.response.TrainCarriageQueryResponse;
import com.jia.train.seat.response.TrainCarriageSaveResponse;

import java.util.List;

public interface TrainCarriageService {

    TrainCarriageSaveResponse insert(TrainCarriageSaveRequest request);

    PageResponse<TrainCarriageQueryResponse> selectPage(TrainCarriageQueryRequest request);

    void deleteTrainCarriage(Long id);

    List<TrainCarriage> selectAllByTripCode(String tripCode);

}
